class CreateWordDefinitions < ActiveRecord::Migration
  def self.up
    create_table :word_definitions do |t|
      t.text :text, :null => false
      t.integer :position, :default => 0
      
      t.references :word
      t.references :dictionary

      t.timestamps
    end
  end

  def self.down
    drop_table :word_definitions
  end
end
